Skip to main content

Resend Email Verification

When a user needs to verify their account, an email is sent to them containing a verification link. Clicking on this link will automatically verify the user's email address and activate their account. This process ensures that the user’s email is valid and that their account remains secure. The verification link has a limited time validity, so it’s essential for users to complete the verification within the given time frame.

Endpoint

To resend the email verification link to the user, make a POST request to the following endpoint:

https://api.betatel.com/api/auth/verify-email/resend

Request Headers

The request must include an Authorization header with a valid JWT token for authentication:

HeaderValueRequiredDescription
Authorization{{access_token}}YesThe authentication token to verify the user's identity

Request Body

Your request should contain the email for the user:

{
"email": "povid681@nokdot.com",
}
ParamValueTypeRequiredDescription
emailpovid681@nokdot.comStringYesThe user's email

Let’s Dive Into the Code!

Choose your preferred programming language and use the provided examples to integrate the login

Example - cURL
curl --location 'https://api.betatel.com/api/auth/verify-email/resend' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3ZWE2MjJiMDU1MjkzNWZhYzVjZDFhZCIsImVtYWlsIjoicG92aWQ2ODFAbm9rZG90LmNvbSIsInJvbGUiOiJ1c2VyIiwiaWF0IjoxNzQzNDI0MjAzLCJleHAiOjE3NDM0Mjc4MDN9._-O4UTMwYTRxKPlht4h1ktMS60UjQEuFCmNbLnY4K-0' \
--header 'Content-Type: application/json' \
--data-raw '{
"email": "povid681@nokdot.com"
}'

Response

JSON Schema:

{
"message": "Verification email sent successfully"
}

🎉 Success – The Email Has Been Resent!

🔜 What’s Next? The user has now been sent a new verification email. You can proceed with other user management functionalities such as handling login sessions, or securing the account with a password reset.